﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.Record;
using TyMES.Model;

namespace TyMES.ViewModel.Record.MaterialBindRecordVMs
{
    public partial class MaterialBindRecordTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._MaterialBindRecord._lineCode")]
        public ExcelPropety LineCode_Excel = ExcelPropety.CreateProperty<MaterialBindRecord>(x => x.LineCode);
        [Display(Name = "_Model._MaterialBindRecord._stationCode")]
        public ExcelPropety StationCode_Excel = ExcelPropety.CreateProperty<MaterialBindRecord>(x => x.StationCode);
        [Display(Name = "_Model._MaterialBindRecord._orderCode")]
        public ExcelPropety OrderCode_Excel = ExcelPropety.CreateProperty<MaterialBindRecord>(x => x.OrderCode);
        [Display(Name = "_Model._MaterialBindRecord._scheduleCode")]
        public ExcelPropety ScheduleCode_Excel = ExcelPropety.CreateProperty<MaterialBindRecord>(x => x.ScheduleCode);
        [Display(Name = "_Model._MaterialBindRecord._snNumber")]
        public ExcelPropety SnNumber_Excel = ExcelPropety.CreateProperty<MaterialBindRecord>(x => x.SnNumber);
        [Display(Name = "_Model._MaterialBindRecord._assemblyMaterialCode")]
        public ExcelPropety AssemblyMaterialCode_Excel = ExcelPropety.CreateProperty<MaterialBindRecord>(x => x.AssemblyMaterialCode);
        [Display(Name = "_Model._MaterialBindRecord._assemblyMaterialQty")]
        public ExcelPropety AssemblyMaterialQty_Excel = ExcelPropety.CreateProperty<MaterialBindRecord>(x => x.AssemblyMaterialQty);
        [Display(Name = "_Model._MaterialBindRecord._assemblySort")]
        public ExcelPropety AssemblySort_Excel = ExcelPropety.CreateProperty<MaterialBindRecord>(x => x.AssemblySort);
        [Display(Name = "_Model._MaterialBindRecord._assemblyTime")]
        public ExcelPropety AssemblyTime_Excel = ExcelPropety.CreateProperty<MaterialBindRecord>(x => x.AssemblyTime);
        [Display(Name = "_Model._MaterialBindRecord._assemblyMaterialName")]
        public ExcelPropety AssemblyMaterialName_Excel = ExcelPropety.CreateProperty<MaterialBindRecord>(x => x.AssemblyMaterialName);
        [Display(Name = "_Model._MaterialBindRecord._assemblyMaterialVersion")]
        public ExcelPropety AssemblyMaterialVersion_Excel = ExcelPropety.CreateProperty<MaterialBindRecord>(x => x.AssemblyMaterialVersion);
        [Display(Name = "_Model._MaterialBindRecord._assemblyMaterialSn")]
        public ExcelPropety AssemblyMaterialSn_Excel = ExcelPropety.CreateProperty<MaterialBindRecord>(x => x.AssemblyMaterialSn);
        [Display(Name = "_Model._MaterialBindRecord._materialBatchNo")]
        public ExcelPropety MaterialBatchNo_Excel = ExcelPropety.CreateProperty<MaterialBindRecord>(x => x.MaterialBatchNo);
        [Display(Name = "_Model._MaterialBindRecord._uploadflag")]
        public ExcelPropety Uploadflag_Excel = ExcelPropety.CreateProperty<MaterialBindRecord>(x => x.Uploadflag);
        [Display(Name = "_Model._MaterialBindRecord._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<MaterialBindRecord>(x => x.CreateTime, true);
        [Display(Name = "_Model._MaterialBindRecord._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<MaterialBindRecord>(x => x.UpdateTime, true);
        [Display(Name = "_Model._MaterialBindRecord._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<MaterialBindRecord>(x => x.CreateBy);
        [Display(Name = "_Model._MaterialBindRecord._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<MaterialBindRecord>(x => x.UpdateBy);

	    protected override void InitVM()
        {
            
        }

    }

    public class MaterialBindRecordImportVM : BaseImportVM<MaterialBindRecordTemplateVM, MaterialBindRecord>
    {
            //import

    }

}